import Vue from "vue";
import App from "./App";
import "./uni.promisify.adaptor";

Vue.config.productionTip = false;

App.mpType = "app";

import uView from "uview-ui";
Vue.use(uView);

uni.$u.setConfig({
  props: {
    input: {
      fontSize: "40rpx",
    },
  },
});

import store from "@/store/index";

import { convertToPinyinString, FIRST_LETTER } from "pinyin4js";
String.prototype.localeCompareTo = String.prototype.localeCompare;
String.prototype.localeCompare = function (b) {
  let pinyinA = convertToPinyinString(this, "", FIRST_LETTER);
  let pinyinB = convertToPinyinString(b, "", FIRST_LETTER);
  return pinyinA.localeCompareTo(pinyinB);
};

const app = new Vue({
  ...App,
  store,
});
import request from "@/util/request";
request(app);
app.$mount();
